﻿--[[	$Id: hunter.lua 2598 2012-09-24 13:45:46Z sdkyron@gmail.com $	]]

if GetLocale() ~= "enUS" then return end

if caelLib.playerClass ~= "HUNTER" then return end

local _, gotMacros = ...

gM_Macros = {
	["T1"] = {
		icon = [=[Interface\Icons\Ability_Hunter_MasterMarksman]=],
		body = [=[/cleartarget [exists]
			/assist [target=pet, exists]Pet
			/stopmacro [target=pettarget, exists]
			/targetenemy [target=pet, dead][target=pet, noexists]]=],
		class = "HUNTER",
	},
	["Foc"] = {
		icon = [=[Interface\Icons\Ability_Hunter_MasterMarksman]=],
		body = [=[/castsequence [harm] reset=0 Hunter's Mark, null
			/focus [help, nodead]]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
	},
	["MisD"] = {
		show = "Misdirection",
		body = [=[/cast [help][target=focus, help][target=pet, exists, nodead] Misdirection]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
	},
	["CDsHunt"] = {
		body = [=[/castsequence reset=4.5 Rapid Fire, Readiness, null]=],
		class = "HUNTER",
	},
	["KillS"] = {
		show = "Kill Shot",
		body = [=[/stopmacro [noharm][dead]
			/stopcasting
			/castsequence reset=2 Kill Shot, Kill Shot, null]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
	},
	["Tranq"] = {
		show = "Tranquilizing shot",
		body = [=[/cast [target=mouseover, exists] Tranquilizing Shot]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
	},
	["TGT"] = {
		show = "Hunter's Mark",
		body = [=[/targetenemy [noexists][noharm][dead]
			/cast [nomodifier, nopet]Call Pet 1;[modifier, nopet]Call Pet 2
			/castsequence [harm]reset=target Hunter's Mark, null
			/petpassive [target=pettarget,exists]
			/stopmacro [target=pettarget,exists]
			/petassist
			/petattack]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
		spec = "1",
	},
	["BmR"] = {
		show = "Arcane Shot",
		body = [=[/click [noexists][noharm][dead] gotMacros_T1
			/click [combat, harm, nodead] gotMacros_CDsAll
			/click [combat, harm, nodead] gotMacros_CDsBM
			/click [modifier, combat, harm, nodead] gotMacros_CDsHunt
			/click [harm, nodead] gotMacros_RotA]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
		spec = "1",
	},
	["RotA"] = {
		body = [=[/cast !Auto Shot
			/click gotMacros_SrS
			/click gotMacros_ArcSa]=],
		nosound = true,
		class = "HUNTER",
		spec = "1",
	},
	["SrS"] = {
		body = [=[/castsequence reset=target Serpent Sting, null]=],
		class = "HUNTER",
		spec = "1, 2, 3",
	},
	["ArcSa"] = {
		body = [=[/castsequence reset=combat/5 Kill Command, Arcane Shot, Cobra Shot, Arcane Shot, Cobra Shot]=],
		class = "HUNTER",
		spec = "1",
	},
	["CDsBM"] = {
		body = [=[/cast [target=pettarget, exists] Bestial Wrath]=],
		nosound = true,
		class = "HUNTER",
		spec = "1",
	},
	["MmR"] = {
		show = "Chimera Shot",
		body = [=[/click [noexists][noharm][dead] gotMacros_T1
			/click [combat, harm, nodead] gotMacros_CDsAll
			/click [modifier, combat, harm, nodead] gotMacros_CDsHunt
			/click [harm, nodead] gotMacros_RotB]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
		spec = "2",
	},
	["RotB"] = {
		body = [=[/cast !Auto Shot
			/click gotMacros_SrS
			/click gotMacros_ChmS
			/click gotMacros_ArcSb]=],
		nosound = true,
		class = "HUNTER",
		spec = "2",
	},
	["ChmS"] = {
		body = [=[/castsequence reset=9.3 Chimera Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot]=],
		class = "HUNTER",
		spec = "2",
	},
	["ArcSb"] = {
		body = [=[/castsequence reset=3/combat Steady Shot, Steady Shot, Arcane Shot, Steady Shot, Steady Shot, Arcane Shot]=],
		class = "HUNTER",
		spec = "2",
	},
	["AimS"] = {
		show = "Aimed Shot",
		body = [=[/castsequence reset=2.56 Steady Shot, Steady Shot, !Aimed Shot]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
		spec = "2",
	},
	["SvR"] = {
		show = "Explosive Shot",
		body = [=[/click [noexists][noharm][dead] gotMacros_T1
			/click [combat, harm, nodead] gotMacros_CDsAll
			/click [modifier, combat, harm, nodead] gotMacros_CDsHunt
			/click [harm, nodead] gotMacros_RotC]=],
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
		spec = "3",
	},
	["RotC"] = {
		body = [=[/cast !Auto Shot
			/click gotMacros_SrS
			/click gotMacros_ExpS
			/click gotMacros_BlkA]=],
		nosound = true,
		class = "HUNTER",
		spec = "3",
	},
	["BlkA"] = {
		body = [=[/castsequence reset=23.3 Black Arrow, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot, !Auto Shot]=],
		class = "HUNTER",
		spec = "3",
	},
	["ExpS"] = {
		body = [=[/castsequence reset=1.6 Explosive Shot, Arcane Shot, Cobra Shot, Arcane Shot, Cobra Shot]=],
		class = "HUNTER",
		spec = "3",
	},
	["LnL"] = {
		show = "Explosive Shot",
		body = [=[/stopmacro [noharm][dead]
			/stopcasting
			/castsequence reset=0 Explosive Shot, null]=],
		nosound = true,
		blizzmacro = true,
		perChar = true,
		class = "HUNTER",
		spec = "3",
	}
}